xen/sched: carve out memory allocation and freeing from schedule_cpu_rm()
authorJuergen Gross <jgross@suse.com>
Tue, 11 Oct 2022 13:00:05 +0000 (15:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 11 Oct 2022 13:00:05 +0000 (15:00 +0200)
commitc377ceab0a007690a1e71c81a5232613c99e944d
treefa1e2d65cd41d6c0849576c9b11c69d1d67d8f0e
parentd4e971ad12dd27913dffcf96b5de378ea7b476e1
xen/sched: carve out memory allocation and freeing from schedule_cpu_rm()

In order to prepare not allocating or freeing memory from
schedule_cpu_rm(), move this functionality to dedicated functions.

For now call those functions from schedule_cpu_rm().

No change of behavior expected.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: d42be6f83480b3ada286dc18444331a816be88a3
master date: 2022-09-05 11:42:30 +0100
xen/common/sched/core.c
xen/common/sched/private.h